<?php
/**
 * Description
 *
 * PHP version 7
 *
 * @category Custom
 * @package  Custom
 * @author   ryu <mo5467@126.com>
 * @date     2020-04-25 12:10:28
 * @lastTime 2020-05-01 23:01:39
 * @license  https://opensource.org/licenses/MIT MIT License
 * @link     none
 */

namespace Design\Structural\Flyweight;

class Word implements Text
{

    private $name;


    public function __construct($name)
    {
        $this->name = $name;

    }//end __construct()


    public function render(string $font): string
    {
        return sprintf('Word %s with font %s', $this->name, $font);

    }//end render()


}//end class
